package cn.ainit.yz.flow;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import cn.ainit.sys.common.dao.SysBaseDao;


@Transactional
@Repository
public class YzFlowDaoImpl extends SysBaseDao implements YzFlowDao {

	
	/***
	 * 印制流程中的通用保存
	 * @param obj
	 * @return
	 * cff
	 * @throws Exception
	 */
	@Override
	public boolean saveYzFlow(Object obj) throws Exception {
		this.getSessionFactory().getCurrentSession().save(obj);
		return true;
	}

	/***
	 * 印制流程中的通用跟新
	 * @param obj
	 * @return
	 * cff
	 * @throws Exception
	 */
	@Override
	public boolean updateYzFlow(Object obj) throws Exception {
		this.getSessionFactory().getCurrentSession().update(obj);
		return true;
	}

}
